package demo1;

public class test {
    public static void main(String[] args) {
        BinaryTree node = new BinaryTree();
        node.createTree();
        node.preOrde(node.root);
        System.out.println("===============");
        node.inOrder(node.root);
        System.out.println("===============");
        node.postOrder(node.root);
        System.out.println("===============");
        System.out.println(node.size(node.root));
        System.out.println("===============");
        System.out.println(node.getLeafNodeCount(node.root));
        System.out.println("===============");
        System.out.println(node.getKLevelNodeCount(node.root, 3));
        System.out.println("===============");
        System.out.println(node.getHeight(node.root));
        System.out.println("===============");
        System.out.println(node.find(node.root, 'B'));
    }
}
